app.controller("commonController",function ($scope,userLoginService) {
    $scope.showName=function(){
        userLoginService.showName().success(
            function(response){

                $scope.loginName=response.loginName;
                $scope.headPic=response.headPic;
            }
        );
    }

    //判断用户名是否是 anonymousUser
    $scope.checkUsername=function () {
        if ($scope.loginName=="anonymousUser"){
            return false;
        }else {
            return true;
        }
    }
});